﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="Shop.Web.ProductList" %>
<asp:Content ID="contentMain" runat="server" ContentPlaceHolderID="mainContent" >
<asp:PlaceHolder runat="server" id="phProductList">
<asp:GridView runat="server" id="gridProduct" AllowPaging="true" AllowSorting="true" PageSize="10" AutoGenerateColumns="false">
    <Columns> 
<%--        <asp:TemplateField ItemStyle-Width="220">
            <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem, "CreatedBy.Name")%></a><br />
                <asp:Image id="imgAvatar" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "CreatedBy.ImageSrc")%>' /><br />
                <%# DataBinder.Eval(Container.DataItem, "CreationTime")%><br />
                <asp:HyperLink id="hlEdit" runat="server" Text="Редактировать"/><br />
                <asp:HyperLink id="hlDelete" runat="server" Text="Удалить"/>
            </ItemTemplate>
        </asp:TemplateField>--%>
        <asp:TemplateField>
            <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem, "Name")%>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    </asp:GridView>  
</asp:PlaceHolder>    
</asp:Content>